﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Example
{
    public class Original : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        protected void OnPropertyChanged(string name)
        {
            var handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
        }
        private string test;

        public string Test
        {
            get
            {
                return this.test;
            }
            set
            {
                this.test = value;
                OnPropertyChanged("Test");
            }
        }
    }
}
